<template>
	<view>
		<fa-navbar title="资产处置"></fa-navbar>
		<view class="flex-center">
			<image class="mt-188 image-size" src="/static/images/asset-handle-success.svg"></image>
		</view>

		<view class="mt-4 h1-font flex-center">资产转移申请成功</view>
		<view class="mt-m2 h3-font-light-gray flex-center">请尽快将资产转移至目标房产中</view>
		<view class="flex-center mt-5">
			<u-button class="btn-result" shape="circle" @click="toHome">返回首页</u-button>
			<u-button class="ml-2 btn-confirm" shape="circle" @click="toAssetTransfer" type="primary">查看详情</u-button>
		</view>
	</view>
</template>

<script>
	import faNavbar from '@/components/fa-navbar/fa-navbar.vue'
	export default {
		components: {
			faNavbar
		},
		data() {
			return {
				handleGuid: undefined,
				guid:undefined
			}
		},
		onLoad(options) {
			console.log(options);
			this.handleGuid = options.handleGuid;
			this.guid = options.guid;
		},
		methods: {
			toHome() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			},
			toAssetTransfer() {
				uni.redirectTo({
					url: `/pages/manage/itemAssetTransfer?handleGuid=${this.handleGuid}&guid=${this.guid}`
				})
			},
		}
	}
</script>

<style style lang="scss">
	
	.btn-result {
		width: 280rpx;
		height: 80rpx;
		color: #3278E6;
		border: 1px solid #3278E6;
	}

	.btn-confirm {
		width: 280rpx;
		height: 80rpx;
		color: #FFFFFF;
		background: linear-gradient(310deg, #5BABF4 0%, #2E73E5 100%);
	}

	.image-size {
		width: 146rpx;
		height: 146rpx;
	}
</style>
